3.2.60 \(\int \frac {a+b \sinh (e+f x)}{c+d x} \, dx\) [160]

Optimal. Leaf size=64 \[ \frac {a \log (c+d x)}{d}+\frac {b \text {Chi}\left (\frac {c f}{d}+f x\right ) \sinh \left (e-\frac {c f}{d}\right )}{d}+\frac {b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d} \]

[Out]

a*ln(d*x+c)/d+b*cosh(-e+c*f/d)*Shi(c*f/d+f*x)/d-b*Chi(c*f/d+f*x)*sinh(-e+c*f/d)/d

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {3398, 3384, 3379, 3382} \begin {gather*} \frac {a \log (c+d x)}{d}+\frac {b \text {Chi}\left (x f+\frac {c f}{d}\right ) \sinh \left (e-\frac {c f}{d}\right )}{d}+\frac {b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (x f+\frac {c f}{d}\right )}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Sinh[e + f*x])/(c + d*x),x]

[Out]

(a*Log[c + d*x])/d + (b*CoshIntegral[(c*f)/d + f*x]*Sinh[e - (c*f)/d])/d + (b*Cosh[e - (c*f)/d]*SinhIntegral[(
c*f)/d + f*x])/d

Rule 3379

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[I*(SinhIntegral[c*f*(fz/
d) + f*fz*x]/d), x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*e - c*f*fz*I, 0]

Rule 3382

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CoshIntegral[c*f*(fz/d)
+ f*fz*x]/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*(e - Pi/2) - c*f*fz*I, 0]

Rule 3384

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[c*(f/d) + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[c*(f/d) + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rule 3398

Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Int[ExpandIntegrand[
(c + d*x)^m, (a + b*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[n, 0] && (EqQ[n, 1] ||
IGtQ[m, 0] || NeQ[a^2 - b^2, 0])

Rubi steps

\begin {align*} \int \frac {a+b \sinh (e+f x)}{c+d x} \, dx &=\int \left (\frac {a}{c+d x}+\frac {b \sinh (e+f x)}{c+d x}\right ) \, dx\\ &=\frac {a \log (c+d x)}{d}+b \int \frac {\sinh (e+f x)}{c+d x} \, dx\\ &=\frac {a \log (c+d x)}{d}+\left (b \cosh \left (e-\frac {c f}{d}\right )\right ) \int \frac {\sinh \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx+\left (b \sinh \left (e-\frac {c f}{d}\right )\right ) \int \frac {\cosh \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx\\ &=\frac {a \log (c+d x)}{d}+\frac {b \text {Chi}\left (\frac {c f}{d}+f x\right ) \sinh \left (e-\frac {c f}{d}\right )}{d}+\frac {b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.09, size = 57, normalized size = 0.89 \begin {gather*} \frac {a \log (c+d x)+b \text {Chi}\left (f \left (\frac {c}{d}+x\right )\right ) \sinh \left (e-\frac {c f}{d}\right )+b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (f \left (\frac {c}{d}+x\right )\right )}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sinh[e + f*x])/(c + d*x),x]

[Out]

(a*Log[c + d*x] + b*CoshIntegral[f*(c/d + x)]*Sinh[e - (c*f)/d] + b*Cosh[e - (c*f)/d]*SinhIntegral[f*(c/d + x)
])/d

________________________________________________________________________________________

Maple [A]
time = 0.42, size = 94, normalized size = 1.47

method result size
risch \(\frac {a \ln \left (d x +c \right )}{d}+\frac {b \,{\mathrm e}^{\frac {c f -d e}{d}} \expIntegral \left (1, f x +e +\frac {c f -d e}{d}\right )}{2 d}-\frac {b \,{\mathrm e}^{-\frac {c f -d e}{d}} \expIntegral \left (1, -f x -e -\frac {c f -d e}{d}\right )}{2 d}\) \(94\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sinh(f*x+e))/(d*x+c),x,method=_RETURNVERBOSE)

[Out]

a*ln(d*x+c)/d+1/2*b/d*exp((c*f-d*e)/d)*Ei(1,f*x+e+(c*f-d*e)/d)-1/2*b/d*exp(-(c*f-d*e)/d)*Ei(1,-f*x-e-(c*f-d*e)
/d)

________________________________________________________________________________________

Maxima [A]
time = 0.30, size = 73, normalized size = 1.14 \begin {gather*} \frac {1}{2} \, b {\left (\frac {e^{\left (\frac {c f}{d} - e\right )} E_{1}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{d} - \frac {e^{\left (-\frac {c f}{d} + e\right )} E_{1}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{d}\right )} + \frac {a \log \left (d x + c\right )}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sinh(f*x+e))/(d*x+c),x, algorithm="maxima")

[Out]

1/2*b*(e^(c*f/d - e)*exp_integral_e(1, (d*x + c)*f/d)/d - e^(-c*f/d + e)*exp_integral_e(1, -(d*x + c)*f/d)/d)
+ a*log(d*x + c)/d

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 122, normalized size = 1.91 \begin {gather*} \frac {{\left (b {\rm Ei}\left (\frac {d f x + c f}{d}\right ) - b {\rm Ei}\left (-\frac {d f x + c f}{d}\right )\right )} \cosh \left (-\frac {c f - d \cosh \left (1\right ) - d \sinh \left (1\right )}{d}\right ) + 2 \, a \log \left (d x + c\right ) + {\left (b {\rm Ei}\left (\frac {d f x + c f}{d}\right ) + b {\rm Ei}\left (-\frac {d f x + c f}{d}\right )\right )} \sinh \left (-\frac {c f - d \cosh \left (1\right ) - d \sinh \left (1\right )}{d}\right )}{2 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sinh(f*x+e))/(d*x+c),x, algorithm="fricas")

[Out]

1/2*((b*Ei((d*f*x + c*f)/d) - b*Ei(-(d*f*x + c*f)/d))*cosh(-(c*f - d*cosh(1) - d*sinh(1))/d) + 2*a*log(d*x + c
) + (b*Ei((d*f*x + c*f)/d) + b*Ei(-(d*f*x + c*f)/d))*sinh(-(c*f - d*cosh(1) - d*sinh(1))/d))/d

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \sinh {\left (e + f x \right )}}{c + d x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sinh(f*x+e))/(d*x+c),x)

[Out]

Integral((a + b*sinh(e + f*x))/(c + d*x), x)

________________________________________________________________________________________

Giac [A]
time = 0.43, size = 68, normalized size = 1.06 \begin {gather*} \frac {b {\rm Ei}\left (\frac {d f x + c f}{d}\right ) e^{\left (e - \frac {c f}{d}\right )} - b {\rm Ei}\left (-\frac {d f x + c f}{d}\right ) e^{\left (-e + \frac {c f}{d}\right )} + 2 \, a \log \left (d x + c\right )}{2 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sinh(f*x+e))/(d*x+c),x, algorithm="giac")

[Out]

1/2*(b*Ei((d*f*x + c*f)/d)*e^(e - c*f/d) - b*Ei(-(d*f*x + c*f)/d)*e^(-e + c*f/d) + 2*a*log(d*x + c))/d

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {a+b\,\mathrm {sinh}\left (e+f\,x\right )}{c+d\,x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*sinh(e + f*x))/(c + d*x),x)

[Out]

int((a + b*sinh(e + f*x))/(c + d*x), x)

________________________________________________________________________________________